var elderMemContacts = {
	elderMemContactsId: '',
	elderId: '',
	name: '',
	sex: '',
	birthday: '',
    cardId: '',
	relationship: '',
	workUnits: '',
	unitsAddress: '',
	liveAddress: '',
	phoneNumber: '',
	email: '',
	createTime: '',
	updateTime: '',
	createId: getLoginedUser()? getLoginedUser().staffId: '',
	updateId: getLoginedUser()? getLoginedUser().staffId: '',
	remark: '',
};

var elderMemContactsView = {
	data: elderMemContacts
};

var elderMemContacts_vue_vm = new Vue({
	el: '#elderMemContacts_vue_vm',
	data: elderMemContactsView
});

function deleteBatch() {
	deleteBatch_basic(path+'/elderMemContacts/deleteBatch');
}

function copyFromElderFamilyMember() {
	if(elderFamilyMember) {
		if(confirm('确实要复制家属资料为紧急联系人资料吗？')) {
			elderMemContacts.name = elderFamilyMember.name;
			elderMemContacts.sex = elderFamilyMember.sex;
			elderMemContacts.year = elderFamilyMember.year;
			elderMemContacts.month = elderFamilyMember.month;
			elderMemContacts.day = elderFamilyMember.day;
			elderMemContacts.birthday = elderFamilyMember.birthday;
			elderMemContacts.cardId = elderFamilyMember.cardId;
			elderMemContacts.cardId = elderFamilyMember.cardId;
			elderMemContacts.relationship = elderFamilyMember.relationship;
			elderMemContacts.workUnits = elderFamilyMember.workUnits;
			elderMemContacts.unitsAddress = elderFamilyMember.unitsAddress;
			elderMemContacts.liveAddress = elderFamilyMember.liveAddress;
			elderMemContacts.phoneNumber = elderFamilyMember.phoneNumber;
			elderMemContacts.email = elderFamilyMember.email;
		}
	}
}